package com.qfedu;

import com.qfedu.entity.ResultVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * 作者：刘随阳
 * 时间: 2021/9/24 8:59
 * 描述：神光照耀,太白成瑞。六丙来迎,百福悠归
 */
@RequestMapping("product")
@FeignClient("me-product")
public interface ProductAPI {


    @GetMapping("/getIndexProduct/{productType}")
    ResultVo getIndexProduct(@PathVariable Integer productType);

    @GetMapping("/getProductDetail/{productId}")
    ResultVo getProductDetail(@PathVariable Integer productId);

    @GetMapping("/getOrderParams")
    ResultVo getOrderParams(@RequestParam("productId") Integer productId,
                            @RequestParam("skuId") Integer skuId,
                            @RequestParam("dateId") Integer dateId);
}
